package com.wuxiaofan.api;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Service;

@Slf4j
@Service
@org.apache.rocketmq.spring.annotation.RocketMQMessageListener(consumerGroup = "test11",topic = "defaultProducer")
public class RocketMQMessageListener implements RocketMQListener<String> {


    @Override
    public void onMessage(String s) {
        log.info("接收到消息:{}",s);
    }
}
